import React from 'react';
import styles from './ListView.css';
import  Item from '../Item/Item.js';


class ListView extends React.Component{
    constructor(){
        super()
    }
    render(){
        let dataSoure=this.props.dataSoure;
        console.log('zzz',dataSoure);
        return(
            <div className={styles.root}>
                {
                    dataSoure.map(function (currentValue,index) {
                        return(
                            <Item title={currentValue.itemName} key={index} url={currentValue.url}/>
                        )
                    })
                }

            </div>
        )
    }
}
export default  ListView;